package me.cloud.seata.annotation;

import io.seata.spring.annotation.GlobalTransactional;

import java.lang.annotation.*;


/**
 * 分布式事务主标记
 * <p>
 * 须标注在分布式事务的第一个事务方法上
 * 每个事务都须标注数据源，示例:{@code @DS("order")}
 * </p>
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@GlobalTransactional(rollbackFor = Exception.class)
public @interface SeataMasterTransactional {
}
